package com.zhijian.medical.dao.local;

import com.zhijian.medical.entity.po.AssessmentPaperQuestion;
import com.zhijian.medical.entity.vo.request.AssessmentPaperQuestionSearchVo;
import com.zhijian.medical.entity.vo.response.AssessmentPaperQuestionVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AssessmentPaperQuestionMapper {
    int deleteByPrimaryKey(Long id);

    /**
     * 根据考核id进行删除
     *
     * @param assessmentId
     * @return
     */
    int deleteByAssessmentId(Long assessmentId);

    int insert(AssessmentPaperQuestion record);

    int insertSelective(AssessmentPaperQuestion record);

    AssessmentPaperQuestion selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(AssessmentPaperQuestion record);

    int updateByPrimaryKey(AssessmentPaperQuestion record);

    int count(AssessmentPaperQuestionSearchVo assessmentPaperQuestionSearchVo);

    List<AssessmentPaperQuestionVo> selectList(AssessmentPaperQuestionSearchVo assessmentPaperQuestionSearchVo);

    AssessmentPaperQuestionVo selectVoById(Long id);

    int insertBatch(@Param("entities") List<AssessmentPaperQuestion> entities);
}